import request from '@/utils/request'

// 查询公摊费用列表
export function listShared(query) {
  return request({
    url: '/basedata/shared/list',
    method: 'get',
    params: query
  })
}

// 查询公摊费用详细
export function getShared(id) {
  return request({
    url: '/basedata/shared/' + id,
    method: 'get'
  })
}

// 新增公摊费用
export function addShared(data) {
  return request({
    url: '/basedata/shared',
    method: 'post',
    data: data
  })
}

// 修改公摊费用
export function updateShared(data) {
  return request({
    url: '/basedata/shared',
    method: 'put',
    data: data
  })
}

// 删除公摊费用
export function delShared(id) {
  return request({
    url: '/basedata/shared/' + id,
    method: 'delete'
  })
}
